package io.renren.modules.mapp.service;

import io.renren.modules.mapp.entity.ActivityEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author cyb
 * @email 
 * @date 2017-08-01 12:20:04
 */
public interface ActivityService {
	
	ActivityEntity queryObject(Long id);
	
	List<ActivityEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(ActivityEntity activity);
	
	void update(ActivityEntity activity);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);

	List<ActivityEntity> queryMyActivities(String openId);

	List<ActivityEntity> queryActivitiesJoined(String openId);
}
